package com.runen.infinitemovement.adapter;

import android.content.Context;
import android.widget.TextView;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.runen.infinitemovement.R;
import com.runen.infinitemovement.model.entity.DynamicsEntity;
import com.runen.infinitemovement.widget.imageview.RoundedCornersImage;

public class MyDynamicStateChallengeAdapter extends BaseQuickAdapter<DynamicsEntity.ActiveListBean, BaseViewHolder> {
    private Context context;

    public MyDynamicStateChallengeAdapter(Context context) {
        super(R.layout.item_my_dynamicstate_challenge);
        this.context = context;
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, DynamicsEntity.ActiveListBean item) {
        TextView tv_challenge = helper.getView(R.id.tv_challenge);
        tv_challenge.setText(item.activityName);
    }
}
